layui.use(["laydate","form"],function () {
    let laydate = layui.laydate;
    let form = layui.form;
    laydate.render({
        elem:"#date"
    })
    form.render();
})

// $("#published").click(function () {
//     saveSummary("published");
// });
// $("#draft").click(function () {
//     saveSummary("draft");
// });
// function saveSummary(status) {
//     let user = $("#user").val();
//     let publisher = $("#publisher").val();
//     let date = $("#date").val();
//     let major = $("#major").val();
//     let coach = $("#coach").val();
//     let headmaster = $("#headmaster").val();
//     let study = $("#study").text();
//     let harvest = $("#harvest").text();
//     let insufficient = $("#insufficient").text();
//     let data = {
//         user:user,
//         publisher:publisher,
//         date:date,
//         major:major,
//         coach:coach,
//         headmaster:headmaster,
//         study:study,
//         harvest:harvest,
//         insufficient:insufficient,
//         publishStatus:status
//     }
//     let result = ajaxModel("/summary/addSummary","post",data);
//     alert(result.message);
// }